//
//  PagingTool.swift
//  CFZWeiBo
//
//  Created by Cedric Zheng on 30/11/2016.
//  Copyright © 2016 Cedric Zheng. All rights reserved.
//

import Foundation

extension Int {
    
    func pageUp(withItemPerPage itemNum:Int ) -> Int {
        return (self - 1)/itemNum + 1
    }
    
}
